/**产品库存管理-产品库-包邮商品API**/
import obj from '@/utils/request'
let {request,baseURL} = obj

//查询所有的零售预购单
export function getStorage(params) {
  return request({
    url: '/storage',
    method: 'get',
    params
  })
}
//查询单个的零售预购单
export function getStorageById(id) {
  return request({
    url: '/storage/'+id,
    method: 'get',
  })
}
//添加零售预购单
export function addStorage(data) {
  return request({
    url: '/storage',
    method: 'post',
    data
  })
}
//修改零售预购单
export function modStorage(data) {
  return request({
    url: '/storage',
    method: 'put',
    data
  })
}
//删除零售预购单
export function delStorage(ids) {
  return request({
    url: '/storage',
    method: 'delete',
    data:ids
  })
}
//用于创建采购单时显示所有的货物
export function getStorageAllGoods() {
  return request({
    url: '/storage/allGoods',
    method: 'get',
  })
}
//根据仓库生成对应的零售采购单编码
export function getStorageOrderCode() {
  return request({
    url: '/storage/orderCode',
    method: 'get',
  })
}



